<?php

class DBMOrdenator {
	const ORDER_MODE_ASC 	= "ASC";
	const ORDER_MODE_DESC 	= "DESC";
	
	/**
	 * The field that will ordenate the results
	 *
	 * @var mixed
	 */
	private $field;
	
	/**
	 * The ordenating mode (ASC or DESC)
	 *
	 * @var int
	 */
	private $mode;
	
	public function __construct($field, $mode){
		$this->setField($field);
		$this->setMode($mode);
	}
	
	public function getField(){
		return $this->field;
	}
	public function setField($field){
		$this->field = $field;
	}
	public function getMode(){
		return $this->mode;
	}
	public function setMode($mode){
		$this->mode = $mode;
	}
}

?>